package com.example.superoa.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONArray;
import com.example.superoa.model.dao.TasmissionDao;
import com.example.superoa.model.mappers.TinformatMapper;

@Service
@Transactional(rollbackFor=Exception.class)
public class TinformatService {
		@Autowired
		private TinformatMapper formapper;
		@Autowired
		private TasmissionDao asdao;
		
		//查询所有
		public JSONArray biofindAll(){
			return formapper.findinformatAlls();
		}						
	  //根据id查询
		public JSONArray findByTinformatname(String tinformatname) {
			return formapper.findByTinformatname("%"+tinformatname+"%");
		}
}
